<?php 
       session_start();
        if(!$_SESSION['log']){session_destroy();
        echo "<meta http-equiv='refresh' content='1;url=index.php'>";
      }
    
      ?>
 <!DOCTYPE HTML SYSTEM>
<html>
<head>
<title>Recapitulation</title>
<style type="text/css">
table.table,td, th {
	border-width: 1px;
	border-spacing: 2px;
	border-style: outset;
	border-color: gray;
	border-collapse: separate;
	background-color: white;
}
</style>
</head>
<body>
<a href="index.php">1. krok</a>
<a href="form2.php">2. krok</a>
<a href="form3.php">3. krok</a>
<a href="form4.php">4. krok</a>
<a href="out.php">5. krok</a>

<?php
$cena=   $_SESSION['cenaobjem']  +$_SESSION['cenadvere']  +$_SESSION['cenabarva'];
 $_SESSION['cena']=$cena;

    echo "<table class=\"table\">";
   	echo "<tr>";
		
			echo "<td>";
			echo "Jmeno";
			echo "</td>";
			echo "<td>";
			echo "Objem" ;
			echo "</td>";
			echo "<td>";
      echo "Pocet Dveri" ;
			echo "</td>";
			echo "<td>";
			echo "Barva" ;
			echo "</td>";
      echo "<td>";
			echo "Cena" ;
			echo "</td>";
			echo "</tr>";
      echo "<tr>";
		  echo "<td>";
			echo $_SESSION['name'];
			echo "</td>";
			echo "<td>";
			echo $_SESSION['capacity'];
			echo "</td>";
			echo "<td>";
      echo $_SESSION['doors'];
			echo "</td>";
			echo "<td>";
			echo $_SESSION['colour'];
			echo "</td>";
      echo "<td>";
			echo $cena;
			echo "</td>";
			echo "</tr>";
      
echo"</table>"; 

?>
 <form action="save.php" method="get">

     
	
		


	<input type="submit" value="Ulozit">
  
  </body>
</html>